<template>
  <el-card shadow="never" header="语言主题">
    <el-form ref="form" label-width="120px" style="margin-top: 20px">
      <el-form-item label="黑夜模式">
        <el-switch v-model="configStore.isDark" inline-prompt active-icon="el-icon-moon" inactive-icon="el-icon-sunny"></el-switch>
        <div class="el-form-item-msg">适合光线较弱的环境，当前黑暗模式为beta版本</div>
      </el-form-item>
      <el-form-item label="主题颜色">
        <el-color-picker v-model="configStore.color" :predefine="colorList">></el-color-picker>
      </el-form-item>
      <el-form-item label="语言">
        <el-select v-model="configStore.globalI18n">
          <el-option label="简体中文" value="zh-cn"></el-option>
          <el-option label="English" value="en"></el-option>
        </el-select>
      </el-form-item>
    </el-form>
  </el-card>
</template>

<script setup>
import { useConfigStore } from "@/store/modules/config";

const configStore = useConfigStore();
const colorList = reactive(["#409EFF", "#009688", "#536dfe", "#ff5c93", "#c62f2f", "#fd726d"]);
</script>
